package Capa_Modelo;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.Query;

import Capa_Datos.CD_Eap;

public class CM_ImplEapDAO extends CM_BaseDao implements CM_EapDAO{
	
	@SuppressWarnings("unchecked")
	public List<CD_Eap> getListaEap(){
		List<CD_Eap> listaEap = new ArrayList<CD_Eap>();
		try{
			Query q=em.createQuery("SELECT s FROM CD_Eap s");
			listaEap = q.getResultList();
		}catch(Exception e){
			e.printStackTrace();
		}
		return listaEap;
	}

}
